package com.github.ginirohikocha.dbm.entity;

import java.io.Serializable;

public class OrderIncludeCustomerWorker extends Order implements Serializable {
    //====customer======
    private String address;
    private String tcode;
    private String type;
    private String approval;
    private String customername;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTcode() {
        return tcode;
    }

    public void setTcode(String tcode) {
        this.tcode = tcode;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public void setType(String type) {
        this.type = type;
    }

    public String getApproval() {
        return approval;
    }

    public void setApproval(String approval) {
        this.approval = approval;
    }

    public String getCustomername() {
        return customername;
    }

    public void setCustomername(String customername) {
        this.customername = customername;
    }

    public String getCmobilephone() {
        return cmobilephone;
    }

    public void setCmobilephone(String cmobilephone) {
        this.cmobilephone = cmobilephone;
    }

    private String cmobilephone;

    //=========woker=======
    private String workername;
    private Integer companyId;

    public String getWorkername() {
        return workername;
    }

    public void setWorkername(String workername) {
        this.workername = workername;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getWmobilephone() {
        return wmobilephone;
    }

    public void setWmobilephone(String wmobilephone) {
        this.wmobilephone = wmobilephone;
    }

    private String wmobilephone;
    //======company==============
    private String companyName;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
    //=====branch=======
    private String workerBranchName;

    public String getWorkerBranchName() {
        return workerBranchName;
    }

    public void setWorkerBranchName(String workerBranchName) {
        this.workerBranchName = workerBranchName;
    }

    public String getOrderBranchName() {
        return orderBranchName;
    }

    public void setOrderBranchName(String orderBranchName) {
        this.orderBranchName = orderBranchName;
    }

    //==branchfororder
    private String orderBranchName;
    //fault
    private String faultName;

    private String faultDescription;

    public String getFaultName() {
        return faultName;
    }

    public void setFaultName(String faultName) {
        this.faultName = faultName;
    }

    @Override
    public String getFaultDescription() {
        return faultDescription;
    }

    @Override
    public void setFaultDescription(String faultDescription) {
        this.faultDescription = faultDescription;
    }

    public Order tansferToOrder() {
        return new Order(getId(), getOrderNum(), getBranchId(), getFaultId(), getFaultDescription(), getContactName(), getContactAddress(), getContactLongitude(), getContactLatitude(), getContactPhone(), getProgress(), getEstimatedPrice(), getStatus(), getOnlinevideo(), getCustomerId(), getWorkerid(), getOrdertime(), getType());
    }
}
